package com.freedom.supercoin.base_library;

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;


public class AppConst {
    // 6-15的数字或字母
    public static boolean ISDEBUG = true;
    public static  int  REQUESTCODE = 165;
    public  static List<Activity> activityList = new ArrayList<>();

    public static  void AddActivity(Activity activity){
        activityList.add(activity);
    }

    public static void finishActivity() {
        for (Activity activity : activityList) {
            if (activity != null) {
                activity.finish();
            }
        }
    }
    public interface Keys {
        String LOGIN_TOKEN = "login_token";//token
        String LANGUAGE = "LANGUAGE";
        String PHONE = "phone"; //手机
        String EMAIL = "email"; //邮箱
        String LOGIN_ACCOUNT = "login_account"; //登录账户
        String FUNDSITE = "fundSite"; //是否设置资金密码
        String USER_ID = "user_id"; //用户ID
        String GOOGLE_IS_EXIST = "googleIsExist"; //是否设置谷歌验证码
        String SEARCH = "search";
        //订阅
        /**
         * 币市值 币种订阅
         */
        String SUBSCRIBE_COIN="/coin";
        /**
         * 币交易对订阅 全网交易对
         */
        String SUBSCRIBE_TRADE_ALL ="/transPair";
        /**
         * k线订阅
         */
        String SUBSCRIBE_K_LINE="/kline.%s.%s.%s";
        /**
         * 深度订阅
         */
        String SUBSCRIBE_DEPTH="/depth.%s.%s";
        /**
         * 实时成交订阅
         */
        String SUBSCRIBE_TRADE="/trade.%s.%s";

        //带参数
        String COIN_NAME = "coin_name";
        String COIN_ID = "coin_id";
        String EXCHANGE = "exchange";
        String EXCHANGE_ID = "exchange_id";
        String TRADE_NAME = "trade_name";
        String TRADE_ID = "trade_id";
        String FIAT ="fiat" ;
        String DEVICE_ID = "device_id";
        String FIAT_CNY = "fiat_cny";
        String FIAT_USD = "fiat_usd";
        String TITLE ="title" ;
        String WEB_URL = "web_url";
    }


    public interface Values {

       //测试
//        String IMAGE_HOST = "http://192.168.3.108:8101/";
        // 正式
        String IMAGE_HOST = "https://www.hayekex.com/api/Api-Resource/";

    }
}
